﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.Master" AutoEventWireup="true" CodeBehind="countryManager.aspx.cs" Inherits="egypt.Web.Admin.countryManager" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Height="89px" HorizontalAlign="Center"
        Width="625px" CellPadding="4" ForeColor="#333333" GridLines="None"  OnSelectedIndexChanging="GridView1_SelectedIndexChanging" OnRowDataBound="GridView1_RowDataBound">
        <Columns>
            <asp:BoundField DataField="Country" HeaderText="国家名称" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:ImageField DataAlternateTextField="Country" DataImageUrlFormatString="../{0}" DataImageUrlField="Flag" HeaderText="国旗">
                <ItemStyle HorizontalAlign="Center" />
            </asp:ImageField>
            <asp:CheckBoxField DataField="IsShow" HeaderText="是否显示" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" Width="70px" />
            </asp:CheckBoxField>
            <asp:CommandField SelectText="修改" ShowSelectButton="True" >
            <ItemStyle Width="40px" HorizontalAlign="Center" />
            </asp:CommandField>
            <asp:CommandField ShowDeleteButton="True" HeaderText="删除" >
            <ItemStyle Width="40px" HorizontalAlign="Center" />
            </asp:CommandField>
        </Columns>
        <RowStyle BackColor="#EFF3FB" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <br />
    <table id="tb_Edit" runat="server" width="494" height="124" border="0" align="center" cellpadding="0" cellspacing="1" visible="false">
  <tr>
    <td colspan="3" style ="background-color:#507CD1; color:White; font-weight:bolder; text-align:center;">修改国家信息</td>
  </tr>
  <tr>
    <td style="width: 125px">国家：</td>
    <td colspan="2">&nbsp;<asp:TextBox ID="txt_country" runat="server"></asp:TextBox><asp:HiddenField runat="server" ID="hf_contryID" /></td>
  </tr>
  <tr>
    <td style="width: 125px">国旗：</td>
    <td width="263">&nbsp;<asp:Image ID="img_flag" runat="server" /></td>
    <td style="width: 102px">&nbsp;</td>
  </tr>
  <tr>
    <td style="width: 125px">是否显示：</td>
    <td colspan="2">&nbsp;<asp:CheckBox ID="cb_isShow" runat="server" /></td>
  </tr>
  <tr>
    <td colspan="3" align="center"><asp:Button ID="Button1" runat="server" Text=" 保 存 " OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button
            ID="Button2" runat="server" OnClick="Button2_Click" Text=" 取 消 " /></td>
  </tr>
</table>
</asp:Content>
